Skip to content

Conversation

@lukebakken
Copy link
Collaborator

Follow-up to #14655

The code to format cacerts and certs_keys needs to check if the incoming value is a list or map, and skip it if not. This is the same pattern as used in a later function head:

format_socket_opts([Head = {Name, Value} | Tail], Acc) when is_list(Value) ->

It ensures that the code won't be called again on an already-formatted value.

@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch from 1cf286d to b5e93e5 Compare October 9, 2025 15:23
@lukebakken lukebakken marked this pull request as draft October 9, 2025 15:48
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch 4 times, most recently from 4a085ea to f710de2 Compare October 9, 2025 16:20
@lukebakken lukebakken marked this pull request as ready for review October 9, 2025 16:21
@lukebakken lukebakken marked this pull request as draft October 9, 2025 16:52
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch 2 times, most recently from 2f7294f to bbbb0d8 Compare October 9, 2025 16:56
@lukebakken lukebakken marked this pull request as ready for review October 9, 2025 16:58
Follow-up to rabbitmq#14655

The code to format `cacerts` and `certs_keys` needs to check if the
incoming value is a list or map, and skip it if not. This is the same
pattern as used in a later function head:

```
format_socket_opts([Head = {Name, Value} | Tail], Acc) when is_list(Value) ->
```

It ensures that the code won't be called again on an already-formatted
value.
@lukebakken lukebakken force-pushed the lukebakken/mgmt-format-followup-to-14655 branch from bbbb0d8 to 275f0a4 Compare October 9, 2025 21:49
@michaelklishin michaelklishin added this to the 4.3.0 milestone Oct 14, 2025
@michaelklishin michaelklishin merged commit eac3d1c into rabbitmq:main Oct 14, 2025
574 of 575 checks passed
michaelklishin added a commit that referenced this pull request Oct 15, 2025
@lukebakken
Copy link
Collaborator Author

Thank you @michaelklishin

@lukebakken lukebakken deleted the lukebakken/mgmt-format-followup-to-14655 branch October 24, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants